<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
    <meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no"/>
    <title>搜索小说-${bookName }</title>
</head>
<body>
    <div>
        <p><a href="/">返回首页</a></p>
    </div>
    <h2>搜索结果：</h2>
    <c:if test="${errorMsg != null}">
        <font color="green">${errorMsg }</font>
        <a href="/changeSource.html">换源</a>
    </c:if>
    <div class="chapter">
        <div class="content"><hr/>
            <c:forEach items="${resultList }" var="book">
                <div class="searchItem">
                    名称：<a href="${ctx}${book.bookUrl }" target="_blank">${book.bookName }</a><br/>
                    作者：${book.authName }<br/>
                    最新：<a href="${ctx}/chapter.html?url=${book.newUrl }" target="_blank">${book.newName }</a><br/>
                    简介：<label>${book.bookDesc }</label>
                </div>
                <hr/>
            </c:forEach>
        </div>
        <div class="pages">
            ${pageInfo }
        </div>
    </div>
</body>
</html>
